<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class Slimore\Cache\File | Slimore</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">Slimore</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-Slimore.Cache.html" title="Summary of Slimore\Cache"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li>
						<a href="namespace-None.html">
							None						</a>
							</li>
					<li class="active">
						<a href="namespace-Slimore.html">
							Slimore<span></span>
						</a>
							<ul>
					<li class="active">
						<a href="namespace-Slimore.Cache.html">
							Cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-Slimore.Cache.Exception.html">
							Exception						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-Slimore.Captcha.html">
							Captcha						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Database.html">
							Database						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Debug.html">
							Debug						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Http.html">
							Http						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Image.html">
							Image						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Log.html">
							Log						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Middleware.html">
							Middleware						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Mvc.html">
							Mvc						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Pagination.html">
							Pagination						</a>
							</li>
					<li>
						<a href="namespace-Slimore.Upload.html">
							Upload						</a>
							</li>
								</ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-Slimore.Cache.File.html">File</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class File</h1>


	<div class="description">
	<p>Class File</p>
	</div>









	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-Slimore.html">Slimore</a>\<a href="namespace-Slimore.Cache.html">Cache</a><br>
		<b>Package:</b> Slimore\Cache<br>

			<b>Located at</b> <a href="source-class-Slimore.Cache.File.html#19-371" title="Go to source code">Slimore/Cache/File.php</a>
		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="__construct" id="___construct">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___construct">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#61-67" title="Go to source code">__construct</a>( )</code>

			<div class="description short">
				<p>Constructor</p>
			</div>

			<div class="description detailed hidden">
				<p>Constructor</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="setSalt" id="_setSalt">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_setSalt">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#69-75" title="Go to source code">setSalt</a>( <span> <var>$salt</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$salt</var></dt>
						<dd></dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="encrypt" id="_encrypt">

			<td class="attributes"><code>
				 protected 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_encrypt">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#78-87" title="Go to source code">encrypt</a>( <span>string <var>$key</var></span> )</code>

			<div class="description short">
				<p>Md5 encrypt cache filename</p>
			</div>

			<div class="description detailed hidden">
				<p>Md5 encrypt cache filename</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getFilePath" id="_getFilePath">

			<td class="attributes"><code>
				 protected 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getFilePath">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#90-101" title="Go to source code">getFilePath</a>( )</code>

			<div class="description short">
				<p>Get cache file path</p>
			</div>

			<div class="description detailed hidden">
				<p>Get cache file path</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getFileName" id="_getFileName">

			<td class="attributes"><code>
				 protected 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getFileName">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#104-115" title="Go to source code">getFileName</a>( <span>string <var>$key</var></span> )</code>

			<div class="description short">
				<p>Get cache filename</p>
			</div>

			<div class="description detailed hidden">
				<p>Get cache filename</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="set" id="_set">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_set">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#118-138" title="Go to source code">set</a>( <span>string <var>$key</var></span>, <span>string <var>$value</var></span>, <span>integer <var>$expireTime</var> = <span class="php-keyword1">null</span></span> )</code>

			<div class="description short">
				<p>Set cache key and write to cache file</p>
			</div>

			<div class="description detailed hidden">
				<p>Set cache key and write to cache file</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
						<dt><var>$value</var></dt>
						<dd></dd>
						<dt><var>$expireTime</var></dt>
						<dd>null</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>

					<h4>Throws</h4>
					<div class="list">
						InvalidArgumentException<br>
						<code><a href="class-Slimore.Cache.Exception.File.html">Slimore\Cache\Exception\File</a></code>
					</div>



			</div>
			</div></td>
		</tr>
		<tr data-order="get" id="_get">

			<td class="attributes"><code>
				 public 
				mixed|null
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_get">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#141-150" title="Go to source code">get</a>( <span> <var>$key</var></span> )</code>

			<div class="description short">
				<p>Get cache key value</p>
			</div>

			<div class="description detailed hidden">
				<p>Get cache key value</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed|null
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="write" id="_write">

			<td class="attributes"><code>
				 protected 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_write">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#153-194" title="Go to source code">write</a>( <span>string <var>$file</var></span>, <span>string <var>$value</var></span> )</code>

			<div class="description short">
				<p>Write to cache file</p>
			</div>

			<div class="description detailed hidden">
				<p>Write to cache file</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd></dd>
						<dt><var>$value</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>

					<h4>Throws</h4>
					<div class="list">
						<code><a href="class-Slimore.Cache.Exception.File.html">Slimore\Cache\Exception\File</a></code>
					</div>



			</div>
			</div></td>
		</tr>
		<tr data-order="read" id="_read">

			<td class="attributes"><code>
				 protected 
				mixed|null
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_read">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#197-228" title="Go to source code">read</a>( <span>string <var>$file</var></span> )</code>

			<div class="description short">
				<p>Read cache file</p>
			</div>

			<div class="description detailed hidden">
				<p>Read cache file</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed|null
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="__set" id="___set">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___set">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#231-241" title="Go to source code">__set</a>( <span>string <var>$key</var></span>, <span>string <var>$value</var></span> )</code>

			<div class="description short">
				<p>Setter</p>
			</div>

			<div class="description detailed hidden">
				<p>Setter</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
						<dt><var>$value</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="__get" id="___get">

			<td class="attributes"><code>
				 public 
				mixed|null
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___get">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#244-253" title="Go to source code">__get</a>( <span> <var>$key</var></span> )</code>

			<div class="description short">
				<p>Getter</p>
			</div>

			<div class="description detailed hidden">
				<p>Getter</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						mixed|null
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="__isset" id="___isset">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___isset">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#256-265" title="Go to source code">__isset</a>( <span>string <var>$key</var></span> )</code>

			<div class="description short">
				<p>Check has property key, when using isset() or empty()</p>
			</div>

			<div class="description detailed hidden">
				<p>Check has property key, when using isset() or empty()</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="has" id="_has">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_has">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#268-297" title="Go to source code">has</a>( <span>string <var>$key</var></span> )</code>

			<div class="description short">
				<p>Check has cache key</p>
			</div>

			<div class="description detailed hidden">
				<p>Check has cache key</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="__unset" id="___unset">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___unset">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#300-309" title="Go to source code">__unset</a>( <span>string <var>$key</var></span> )</code>

			<div class="description short">
				<p>Delete property key, when using unset()</p>
			</div>

			<div class="description detailed hidden">
				<p>Delete property key, when using unset()</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="remove" id="_remove">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_remove">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#312-330" title="Go to source code">remove</a>( <span>string <var>$key</var></span> )</code>

			<div class="description short">
				<p>Remove cache key</p>
			</div>

			<div class="description detailed hidden">
				<p>Remove cache key</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$key</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="clear" id="_clear">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_clear">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#333-351" title="Go to source code">clear</a>( )</code>

			<div class="description short">
				<p>Clear expire cache file</p>
			</div>

			<div class="description detailed hidden">
				<p>Clear expire cache file</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="clearAll" id="_clearAll">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_clearAll">#</a>
			<code><a href="source-class-Slimore.Cache.File.html#354-370" title="Go to source code">clearAll</a>( )</code>

			<div class="description short">
				<p>Delete all cache files</p>
			</div>

			<div class="description detailed hidden">
				<p>Delete all cache files</p>







			</div>
			</div></td>
		</tr>
			</table>
		</div>











		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
			<table class="summary table table-bordered table-striped properties" id="properties">
		<tr data-order="keys" id="$keys">
			<td class="attributes"><code>
				public static 
				array
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Cache.File.html#26-29" title="Go to source code"><var>$keys</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$keys" class="anchor">#</a>
					<code>[]</code>
				</div>
			</td>
		</tr>
		<tr data-order="expireTime" id="$expireTime">
			<td class="attributes"><code>
				public  
				integer
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Cache.File.html#31-34" title="Go to source code"><var>$expireTime</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$expireTime" class="anchor">#</a>
					<code><span class="php-num">3600</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="salt" id="$salt">
			<td class="attributes"><code>
				protected  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Cache.File.html#36-39" title="Go to source code"><var>$salt</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$salt" class="anchor">#</a>
					<code><span class="php-quote">'slimore'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="cachePath" id="$cachePath">
			<td class="attributes"><code>
				public  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Cache.File.html#40-43" title="Go to source code"><var>$cachePath</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$cachePath" class="anchor">#</a>
					<code><span class="php-quote">'.'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="cacheDirectory" id="$cacheDirectory">
			<td class="attributes"><code>
				public  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Cache.File.html#45-48" title="Go to source code"><var>$cacheDirectory</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$cacheDirectory" class="anchor">#</a>
					<code><span class="php-quote">'.caches'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="fileExtension" id="$fileExtension">
			<td class="attributes"><code>
				public  
				string
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Cache.File.html#50-53" title="Go to source code"><var>$fileExtension</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$fileExtension" class="anchor">#</a>
					<code><span class="php-quote">'.php'</span></code>
				</div>
			</td>
		</tr>
		<tr data-order="base64Encode" id="$base64Encode">
			<td class="attributes"><code>
				public  
				boolean
			</code></td>

			<td class="name">
					<a href="source-class-Slimore.Cache.File.html#55-58" title="Go to source code"><var>$base64Encode</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$base64Encode" class="anchor">#</a>
					<code><span class="php-keyword1">true</span></code>
				</div>
			</td>
		</tr>
			</table>
		</div>






</div>
	</div>

	<div id="footer">
		Slimore API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
